Feature Group
bash internal / data manipulations / string manipulation and expansions / parameter expansion / string substitution (3)
Loading...
bash
This demonstrates string substitution using parameter expansion to replace the first occurrence of a substring.
echo "${variable/Some/A}" # => A string # This will substitute the first occurrence of "Some" with "A".
bash internaldata manipulationsstring manipulation and expansionsparameter expansionstring substitution